package com.suse.lhw.hms.foodserver.dao;

import com.suse.lhw.hms.foodserver.domin.FFoodmodel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.hms.foodserver.dao
 * @ClassName: FFoodmodelMapper
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/4/26 11:25
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/4/26 11:25
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Mapper
public interface FFoodmodelMapper {
    int deleteByPrimaryKey(Integer fmId);

    int insert(FFoodmodel record);

    int insertSelective(FFoodmodel record);

    FFoodmodel selectByPrimaryKey(Integer fmId);

    int updateByPrimaryKeySelective(FFoodmodel record);

    int updateByPrimaryKey(FFoodmodel record);

    List<FFoodmodel> selectAllByPackageId(int packageId);

    List<FFoodmodel> selectFoodModelsByStatus(int status);

    List<FFoodmodel> selectByNameStatus(String name, int status);

    List<FFoodmodel> selectByNameStatusUserId(String name, int status, String userId);
}